package org.dromara.system.domain.bo;

import org.dromara.system.domain.AppSupplierEvaluation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 供应商评价业务对象 app_supplier_evaluation
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppSupplierEvaluation.class, reverseConvertGenerate = false)
public class AppSupplierEvaluationBo extends BaseEntity {

    /**
     * 评价唯一ID
     */
    private Long id;

    /**
     * 供应商ID
     */
    private Long supplierId;

    /**
     * 评价用户ID
     */
    private Long userId;

    /**
     * 星级评分，1-5
     */
    private Long starRating;

    /**
     * 评价总分
     */
    private Long totalScore;

    /**
     * 交付及时性评分
     */
    private Long deliveryScore;

    /**
     * 成本评分
     */
    private Long costScore;

    /**
     * 服务评分
     */
    private Long serviceScore;

    /**
     * 潜力评分
     */
    private Long potentialScore;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
